{*Smarty*}


<div class="title">Order {if "ret" == $order.type_order}Return {/if}Details</div>
<br />


<form name='Order' method="post" action="{$form_url}" >
<input type="hidden" name="event" value="Submit_Order" >
<input type="hidden" name="id" value="{$id}" >


<table width="90%">
<tr><th colspan="6">Order ID #{$order.id}. Received at {"`$order.pubdate`"|date_format:"%m/%d/%Y %I:%M %p"}</th></tr>
<tr class="footer">
    <td>Billing Details</td>
    <td colspan="5">Shipping Details</td>
</tr>   
<tr class="light">
    <td align="left" valign="top" >
        {$order.lname} {$order.fname}<br />
        {$order.address1}<br />
        {$order.address2}<br />
        {$order.city} {$order.zip} {$order.state} {$order.country}<br />
        {$order.phone}<br />
        {$order.email}<br /><br />
        {* <i>How did you find us:</i> Yahoo<br /> *}
    </td>
    <td align="left" valign="top" colspan="5">
        {$order.slname} {$order.sfname}<br />
        {$order.saddress1}<br />
        {$order.saddress2}<br />
        {$order.scity} {$order.szip} {$order.sstate} {$order.scountry}<br />
    </td>
</tr>
<tr class="footer">
    <td colspan="6">Payment Information</td>
</tr>   
<tr class="light">
    <td align="left" valign="top" colspan="6">
    Credit Card Payment
    </td>
</tr>

<tr class="light" align="left">
<td colspan="6">
        <table border="1" cellpadding="0" cellspacing="0">

        <tr class="light">
        <td>Credit card type:
        </td>
        <td>
            {$order.cctype}
        </td>
        </tr>

        <tr class="light">
        <td>Credit card number:
        </td>
        <td>
            {$order.ccnumber}
        </td>
        </tr>

        <tr class="light">
        <td>Credit card holder:
        </td>
        <td>
            {$order.ccholdername}
        </td>
        </tr>

        <tr class="light">
        <td>Credit card CVV:
        </td>
        <td>
            {$order.cccvv}
        </td>
        </tr>

        <tr class="light">
        <td>Expiration date:
        </td>
        <td>
            {$order.ccexpdate}
        </td>
        </tr>

        </table>
</td>
</tr>

<tr class="footer">
    <td colspan="6">Shopping Cart Details</td>
</tr>

<tr class="dark">
    <td{if "ret" != $order.type_order} colspan="2"{/if}>Item</td>
    {if "ret" == $order.type_order}
    <td align="center" width="100px">Reason</td>
    {/if}
    <td align="center">Price</td>
    <td align="center">Quantity</td>
    <td align="center">Extended Warranty</td>
    <td align="center">Subtotal</td>
</tr>

{foreach from=$items item=item}
<tr class="{cycle values="light,dark"}">
    <td{if "ret" != $order.type_order} colspan="2"{/if}>{if "ret" == $order.type_order}<a href="?path=orderslist&page=view&id={$order.from_order}">{/if}{$item.title}{if "ret" == $order.type_order}</a>{/if}</td>
    {if "ret" == $order.type_order}
    <td>{$item.reason}</td>
    {/if}
    <td align="center">${$item.price_prod}</td>
    <td align="center">{$item.qty}</td>
    <td align="center">{if 0 != $item.warranty_num && "" != $item.warranty_num}<a href="?path=newslinelist,warranty&page=edit&wid={$item.warranty}">${$item.warranty_num}</a>{else}-{/if}</td>
    <td align="center">${$item.price_num_prod+$item.warranty_num}</td>
</tr>
{/foreach}

<tr class="dark">
    <td colspan="5">SUB TOTAL:</td>
    <td>${$price}</td>
</tr>   

<tr class="dark">
    <td colspan="5">Discount</td>
    <td>{if 0 != $order.discount && "" != $order.discount}-${$order.discount}{else}-{/if}</td>
</tr>

<tr class="dark">
    <td>Shipping</td>
    <td colspan="4">{$shipment.shipment_title}</td>
    <td>{if 0 != $shipment.shipment_price && "" != $shipment.shipment_price}${$shipment.shipment_price}{else}-{/if}</td>
</tr>
<tr class="dark">
    <td colspan="5">TOTAL:</td>
    <td>${$order.price}</td>
</tr>   

<tr class="footer">
    <td colspan="1">
        Order status:   <select type="checkbox" class="input_select" name="Sel_Status">
                                {foreach from=$Status_List item=item}
                                     <option {if $item.id eq $Current_Status} selected {/if} value={$item.id}> {$item.name} </option>
                                {/foreach}
                        </select><br /><br />
        Order Tracking # <input type="text" name="order_tn" value="{$order.order_tn}" class="input_text" />
    <select type="checkbox" class="input_select" name="provider">
    <option value=''> </option>
    {foreach from=$postage_list item=i}
    <option {if $order.provider == $i.title} selected {/if} value="{$i.title}">{$i.title}</option>
    {/foreach}
    </select>
    </td>
   
    <td align="right" colspan="3">
        Send auto email to client <input type="checkbox" name="Check_Email" class="input_checkbox"   ><br /><br />
        
    </td>
</tr>   
</table>

    </form>
